﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.Domain.Dtos
{
    public class ShiftplanningDTO
    {
        /// <summary>
        ///主键
        /// </summary>
        [Key]
        [Display(Name = "主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int id { get; set; }

        /// <summary>
        ///计划编号
        /// </summary>
        [Display(Name = "计划编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string ShiftCode { get; set; }

        /// <summary>
        ///计划名称
        /// </summary>
        [Display(Name = "计划名称")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string ShiftName { get; set; }

        /// <summary>
        ///班组类型
        /// </summary>
        [Display(Name = "班组类型")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string TeamType { get; set; }

        public string TeamTypeName { get; set; }

        /// <summary>
        ///开始日期
        /// </summary>
        [Display(Name = "开始日期")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? BeginTime { get; set; }

        /// <summary>
        ///结束日期
        /// </summary>
        [Display(Name = "结束日期")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? EndTime { get; set; }

        /// <summary>
        ///轮班方式
        /// </summary>
        [Display(Name = "轮班方式")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Shiftmodel { get; set; }

        /// <summary>
        ///倒班方式
        /// </summary>
        [Display(Name = "倒班方式")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Pourmodel { get; set; }

        /// <summary>
        ///单据状态
        /// </summary>
        [Display(Name = "单据状态")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Documentstatus { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(300)]
        [Column(TypeName = "nvarchar(300)")]
        [Editable(true)]
        public string RemarkText { get; set; }
    }
}
